#FROM bellsoft/liberica-openjre-debian:8 as spring-office
#
#RUN apt-get update && apt-get -y install \
#  apt-transport-https locales-all libpng16-16 \
#  # procps needed for us finding the libreoffice process, see https://github.com/sbraconnier/jodconverter/issues/127#issuecomment-463668183
#  procps \
#  && apt-get -y install libreoffice --no-install-recommends \
#  && rm -rf /var/lib/apt/lists/*

FROM java:8

#维护者
MAINTAINER YangSun  1475785135@qq.com

# 定义数据卷位置---存放容器共享文件的位置
VOLUME /home/tmp
ADD target/*.jar app.jar
RUN bash -c 'touch /app.jar'
EXPOSE 80

#指定配置容器启动后执行的命令
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"]
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone